#pragma once

#include "iskia_control.h"
#include <stdio.h>

#include <memory>
#include <list>

class SkiaControlDown : virtual public ISkiaControl {
public:
    ~SkiaControlDown() override = default;

    bool IsDown() const { return down_; }

    void OnMouseDown(int32_t x, int32_t y) override
    {
        down_ = IsContain(x, y);
    }

    void OnMouseUp() override
    {
        down_ = false;
    }

private:
    bool down_ = false;
};
